import { ColumnProps } from "/@/components/ProTable/interface";
import { genderType, userLocked } from "/@/utils/serviceDict";

// 配置项
const columns = (): Partial<ColumnProps>[] => {
    return [{
            type: "selection",
            width: 60,
            fixed: "left"
        },
        {
            type: "index",
            label: "#",
            width: 60
        },
        {
            prop: "url",
            label: "异常URL",
            search: true,
            width: 240,
        },
        {
            prop: "stackTrace",
            label: "堆栈信息",
            width: 100,
            tag: true,
        },
        {
            prop: "exception",
            label: "异常信息",
        },
        {
            prop: "method",
            label: "请求方法",
            width: 120,
        },
        {
            prop: "uuid",
            label: "异常标识",
            width: 280,
            search: true,
        },
        {
            prop: "status",
            label: "状态码",
            width: 100,
            search: true,
        },
        {
            prop: "name",
            label: "异常用户",
            width: 140,
            search: true,
        },
        {
            prop: "operation",
            label: "操作",
            width: 100,
            fixed: "right"
        }
    ]
}

export default columns;